
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Collections.Generic;


namespace Timetable.Base.Entities
{
    [DataContract(IsReference = true)]
    public class Group: BaseEntity 
    {
        [DataMember]
        public string Code { get; set; }

        public Course Course { get; set; }

        public Speciality Speciality { get; set; }

        [DataMember]
        public int? StudentsCount { get; set; }

        public Group Parent { get; set; }

        public virtual ICollection<ScheduleInfo> ScheduleInfoes { get; set; }
    }
}
